package com.zyp.shop;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableScheduling// 开启定时器注解
@EnableSwagger2 // 开启文档api说明生成
@MapperScan("com.zyp.shop.dao") // 开启mybatis 在哪个路径下 如果doc层的每个类上面有@mapper 这个注解也可以不加
public class ShoppingApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShoppingApplication.class, args);
    }
}
